import Vue from 'vue'
import router from './router.js'

import App from './App.vue'

import Api from './plugins/api'
Vue.use(Api)

import YDUI from 'vue-ydui'
import 'vue-ydui/dist/ydui.rem.css'
import 'vue-ydui/dist/ydui.flexible.js'
Vue.use(YDUI);

import store from './store'

import FastClick from 'fastclick'

FastClick.attach(document.body)

Vue.config.productionTip = false

router.beforeEach((to, from, next) => {
  window.document.title = to.meta.title? to.meta.title : '菲洛嘉'
  next()
})

new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
